/* ***********************************************************************
 * Copyright (C) 1992-- 2016 中国南方航空股份有限公司.
 *
 * Created [2016-09-08 14:48:31] by FMS Team
 * ***********************************************************************
 *
 * mybaits-generator
 * ***********************************************************************
 */
package com.foreveross.law.system.domain;

import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.HashCodeBuilder;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
* <p>com.foreveross.law.system.domain.Resource</p>
*
* @author changwu.liao email:changwu.liao(a)gmail.com
* @version 1.0
* @since 1.0
* @Modified by add modified description
* @purpose add this file description here
*/
public class Resource implements java.io.Serializable{
	private static final long serialVersionUID = 5454155825314635342L;
	
	//alias	
	public static final String TABLE_SQL_NAME = "RESOURCE";
	
	public static final String ALIAS_RESOURCE_ID = "resourceId";
	public static final String ALIAS_REDOURCE_NAME = "redourceName";
	public static final String ALIAS_MENU_ID = "menuId";
	public static final String ALIAS_REDOURCE_URL = "redourceUrl";
	public static final String ALIAS_REDOURCE_DIV_ID = "redourceDivId";
	
	//date formats
	
	//the column is a primary key	
	public static final String PROP_KEY = "resourceId";
	
	//fields START
	public static String PROP_REF="Resource";
	public static String PROP_REF_RESOURCE_ID = "resourceId";
	
	public static String PROP_REF_REDOURCE_NAME = "redourceName";
	
	public static String PROP_REF_MENU_ID = "menuId";
	
	public static String PROP_REF_REDOURCE_URL = "redourceUrl";
	
	public static String PROP_REF_REDOURCE_DIV_ID = "redourceDivId";
	//fields END
	
	//columns sql name START	
	public static String PROP_COLUMN_RESOURCE_ID = "RESOURCE_ID";
	public static String PROP_COLUMN_REDOURCE_NAME = "REDOURCE_NAME";
	public static String PROP_COLUMN_MENU_ID = "MENU_ID";
	public static String PROP_COLUMN_REDOURCE_URL = "REDOURCE_URL";
	public static String PROP_COLUMN_REDOURCE_DIV_ID = "REDOURCE_DIV_ID";
	//columns sql name END
		
	//columns START
	private java.lang.String resourceId;
	private java.lang.String redourceName;
	private java.lang.String menuId;
	private java.lang.String redourceUrl;
	private java.lang.String redourceDivId;
	//columns END

	public Resource(){
	}

	public Resource(
		java.lang.String resourceId
	){
		this.resourceId = resourceId;
	}

	public void setResourceId(java.lang.String value) {
		this.resourceId = value;
	}
	
	public java.lang.String getResourceId() {
		return this.resourceId;
	}
	public void setRedourceName(java.lang.String value) {
		this.redourceName = value;
	}
	
	public java.lang.String getRedourceName() {
		return this.redourceName;
	}
	public void setMenuId(java.lang.String value) {
		this.menuId = value;
	}
	
	public java.lang.String getMenuId() {
		return this.menuId;
	}
	public void setRedourceUrl(java.lang.String value) {
		this.redourceUrl = value;
	}
	
	public java.lang.String getRedourceUrl() {
		return this.redourceUrl;
	}
	public void setRedourceDivId(java.lang.String value) {
		this.redourceDivId = value;
	}
	
	public java.lang.String getRedourceDivId() {
		return this.redourceDivId;
	}

	public String toString() {
		return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
			.append("ResourceId",getResourceId())
			.append("RedourceName",getRedourceName())
			.append("MenuId",getMenuId())
			.append("RedourceUrl",getRedourceUrl())
			.append("RedourceDivId",getRedourceDivId())
			.toString();
	}
	
	public int hashCode() {
		return new HashCodeBuilder()
			.append(getResourceId())
			.toHashCode();
	}
	
	public boolean equals(Object obj) {
		if(obj instanceof Resource == false) return false;
		if(this == obj) return true;
		Resource other = (Resource)obj;
		return new EqualsBuilder()
			.append(getResourceId(),other.getResourceId())
			.isEquals();
	}
}

